package com.继承.demo01;

public class Test {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        teacher.teach("周冬雨");
        teacher.setName("周冬雨");
        teacher.setAge(18);

        System.out.println(teacher);
        System.out.println("--------------------");

        Student01 student01 = new Student01();
        student01.study("黄四郎");
        student01.setName("黄四郎");
        student01.setAge(22);
        System.out.println(student01);

    }
}
